package com.springcloud.api.service;

import com.springcloud.api.config.FeignConfiguration;
import com.springcloud.api.service.hystrix.HystrixProductFallback;
import com.springcloud.api.service.hystrix.HystrixProductFallbackFactory;
import com.springcloud.model.base.Res.BaseRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(value = "product",configuration = FeignConfiguration.class,
        //fallback = HystrixProductFallback.class
          fallbackFactory = HystrixProductFallbackFactory.class)
public interface FeignProductService {
    @RequestMapping(value = "/product/list",method = RequestMethod.GET)
    BaseRes list();

}
